console.log(process.env.npm_lifecycle_event);

const database = {
  host: "localhost", // 数据库地址
  port: "3306", // 数据库端口号
  user: process.env.npm_lifecycle_event === "dev" ? "root" : "root1", // 数据库登录用户名
  password: process.env.npm_lifecycle_event === "dev" ? "root" : "root1", // 数据库登录密码
  database: "2208A-G4", // 数据库名称
};

const key = "wberwoelrnwpdqnwlnqwq";

module.exports = { database, key };
